URL = "http://cgg.mff.cuni.cz/projects/SkylightModelling/HosekWilkie_SkylightModel_C_Source.%(VERSION)s.zip"
VERSIONS = ["1.4a"]
DEFAULT_VERSION = "1.4a"

# self created CMakeLists.txt created 

import os, shutil, subprocess, sys
from source.builders import CMakeBuilder, ConfigureMakeBuilder

class ArHosekSkyModelBuilder( CMakeBuilder ):
  """ subclass of CMakeBuilder with custom configure step """

  def configure(self):
    """upgrade the files and build the solution """
    self.extractedpathbase = self.extractedpath
    self.extractedpath = os.path.join(self.extractedpath, 'HosekWilkie_SkylightModel_C_Source.%s' % self.version)
    self.copyfile(sys.path[0]+"/library/additions/arhosekskymodel/CMakeLists.txt", self.extractedpath)
    CMakeBuilder.configure(self)

BUILDER = ArHosekSkyModelBuilder


